package com.bwie.common.controller;

import com.bwie.common.Exection.AuthExection;
import com.bwie.common.result.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;


public class ScanController {

    /**
     * 全局异常
     * @param exection
     * @return
     */
    @ExceptionHandler(value = AuthExection.class)
    public Result error(AuthExection exection){
        return Result.error(exection.getMessage());
    }
}
